package com.kit.personalkit.common;

import lombok.Getter;

@Getter
public enum ResponseStatus {
    LOGIN_SUCCESS(201,"登录成功！"),
    LOGIN_FAIL(401,"登录失败！"),
    NOT_LOGIN(402,"用户未登录！"),
    UPLOAD_SUCCESS(202,"上传成功！"),
    UPLOAD_FAIL(403,"上传失败！"),
    UPLOAD_TYPE_ERROR(407,"视频格式错误，请重新上传！"),
    UPLOAD_SIZE_ERROR(408,"视频大小超过500MB，请重新上传！"),

    ERROR_NOT_FOUND(404,"数据不存在！"),
    DELETE_SUCCESS(203,"删除成功！"),
    DELETE_FAIL(405,"删除失败！"),
    UPDATE_SUCCESS(204,"更新成功！"),
    UPDATE_FAIL(406,"更新失败！"),
    SUCCESS(200,"请求成功！"),
    FAILED(500,"请求失败"),
    NO_TIME(10001,"时间选择为空或null"),
    ADD_SCHEDULE_SUCCESS(10003,"日程添加成功"),
    NO_SCHEDULE(10004,"日程不存在"),
    SET_SCHEDULE_SUCCESS(10005,"修改日程成功"),
    NO_DATA(10006,"该用户暂无数据"),
    PASS_DATA(10007,"用户数据加载成功"),
    FILE_NOT_FOUND,
    SHARE_SUCCESS,
    REGISTER_SUCCESS(1000,"注册成功"),
    USER_ALREADY_EXISTS(1001,"用户已存在"),
    USER_DOES_NOT_EXISTS(1002,"用户不存在"),
    PASSWORD_ERROR(1003,"密码错误"),
    USER_DOES_NOT_ADMIN(1004,"非管理员"),
    ADMIN_LOGIN_SUCCESS(1005,"管理员登录"),
    HAS_BEEN_BANNED(1006,"你已被封禁!"),
    AUDIO_ALREADY_EXISTS(1007,"您已有此文件，请重新提交！"),
    VALIDATE_ERROR(3002, "参数校验失败"),
    FORBIDDEN_ERROR(3003,"无权访问");

    private Integer code;
    private String msg;

    ResponseStatus(){

    }

    ResponseStatus(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
